Yosef Or Boczko [Sat, 1 Mar 2014 23:17:36 +0000 (01:17 +0200)]
Updated Hebrew translation
Rafael Ferreira [Fri, 28 Feb 2014 15:14:33 +0000 (15:14 +0000)]
Updated Brazilian Portuguese translation
Piotr Drąg [Fri, 28 Feb 2014 14:28:39 +0000 (15:28 +0100)]
Updated POTFILES.in and POTFILES.skip
Tim Waugh [Wed, 26 Feb 2014 16:05:44 +0000 (16:05 +0000)]
New cloudprint GTK+ print module for Google Cloud Print.
This is a web service provided by Google that allows people to
share their printers (https://www.google.com/cloudprint/learn/).
In addition to being able to print to printers shared on Google Cloud
Print, there is an equivalent of "Print to file" in the form of "Save to
Google Drive".
The cloudprint module uses gnome-online-accounts to obtain the OAuth 2.0
access token for the Google account.
Currently it can discover available printers, get simple details about
them such as display name and status, and submit jobs without any
special options.
https://bugzilla.gnome.org/show_bug.cgi?id=723368
Benjamin Otte [Fri, 28 Feb 2014 02:07:18 +0000 (03:07 +0100)]
gdkwindow: Call function instead of copying its code
gdk_window_get_origin() is just a variant of
gdk_window_get_root_coords() after all.
Benjamin Otte [Tue, 25 Feb 2014 13:11:20 +0000 (14:11 +0100)]
reftests: Add a test for a widget stacking regression
GTK 3.10 fails to obey the stacking order when drawing widgets.
https://bugzilla.gnome.org/show_bug.cgi?id=725089
Benjamin Otte [Tue, 25 Feb 2014 13:51:16 +0000 (14:51 +0100)]
fixed: Fix drawing order
Restore the drawing order in GtkFixed to what it was in 3.8. With the
GDK drawing changes this will not be correct in some cases (un-windowed
children can now overlap windowed children and native children overlap
everything), but fixes Eclipse drawing.
https://bugzilla.gnome.org/show_bug.cgi?id=725089
Jasper St. Pierre [Fri, 28 Feb 2014 02:02:22 +0000 (21:02 -0500)]
gdkwindow: Always pass the impl window to GdkWindowImpl::get_root_coords
The point of GdkWindowImpl::get_root_coords is to translate the passed
in coordinates against the passed-in impl window. For a child window,
in fact, window->abs_x and window->abs_y already track the child
window's coordinates against the impl window.
If we pass in a child window, and backends don't explicitly get the impl
window from it, we'll double-count the child window.
Really, we should *always* be passing impl windows to backends, and
never child windows. However, I'm a bit worried for regressions late
in the cycle if we want to fix up the rest of the callers, like
gdk_window_get_geometry, so I'm only going to touch get_root_coords
for now after careful review of all the backends.
Jasper St. Pierre [Fri, 28 Feb 2014 01:58:13 +0000 (20:58 -0500)]
Remove the return value of GdkWindowImpl::get_root_coords
It's unused by callers, and the historical return values are
undocumented, so just remove it now.
Jasper St. Pierre [Thu, 27 Feb 2014 22:32:53 +0000 (17:32 -0500)]
wayland: Seal up a non-declared public member
Jasper St. Pierre [Thu, 27 Feb 2014 22:00:46 +0000 (17:00 -0500)]
wayland: Remove old, outdated comment
Jasper St. Pierre [Thu, 27 Feb 2014 21:54:20 +0000 (16:54 -0500)]
wayland: Fix margins at startup
GtkWindow calls set_shadow_width then maps the window, meaning
that we never set the margin. Save it when we set and then set
it when we create the XDG surface.
Rafael Ferreira [Thu, 27 Feb 2014 16:16:30 +0000 (16:16 +0000)]
Updated Brazilian Portuguese translation
William Jon McCann [Thu, 27 Feb 2014 14:09:28 +0000 (09:09 -0500)]
dialog: remove suggested action class when changing default action
So that we don't have multiple widgets with the style class set
to suggested-action.
William Jon McCann [Thu, 27 Feb 2014 14:08:53 +0000 (09:08 -0500)]
dialog: set suggested-action even on dialogs without header bars
It is up to the theme whether these should be styled.
William Jon McCann [Thu, 27 Feb 2014 13:12:56 +0000 (08:12 -0500)]
about-dialog: link directly to the 3.0 version of GPL licenses
In the unlikely case that there is another GPL released in the future
it would be best if we link directly to the 3.0 version of the
license description instead of the alias to the latest
version.
William Jon McCann [Wed, 26 Feb 2014 16:16:06 +0000 (11:16 -0500)]
widget-factory: add entry progress modes
William Jon McCann [Tue, 25 Feb 2014 22:44:06 +0000 (17:44 -0500)]
docs: fix headerbar screenshot
Benjamin Otte [Wed, 26 Feb 2014 01:29:36 +0000 (02:29 +0100)]
a11y: Fix refcounting for treeview cells
Old code assumed that AT-SPI would keep track of references and
therefore tried to only hold weak references. On the other hand it also
tried to keep objects alive so it referenced objects very randomly. All
of that lead to cycles and leaking.
As AT-SPI does not keep track of objects at all, the treeview now does.
The refcounting looks as follows:
GtkTreeViewAccessible
=> creates per row/column
GtkTreeViewAccessibleCellInfo
=> which references 1
GtkCellAccessible
If there is only one cell, this accessible is a
GtkRendererCellAccessible, otherwise a GtkContainerCellAccessible is
created and that accessible holds references to the
GtkRendererCellAccessibles that are created for every cell renderer.
https://bugzilla.gnome.org/show_bug.cgi?id=554618
Benjamin Otte [Wed, 26 Feb 2014 00:47:50 +0000 (01:47 +0100)]
a11y: Refactor function
Make the intent of the function clear by implementing it that way.
Benjamin Otte [Mon, 24 Feb 2014 17:02:41 +0000 (18:02 +0100)]
a11y: Split out a function
This will make the next refactoring easier.
Benjamin Otte [Mon, 24 Feb 2014 14:36:03 +0000 (15:36 +0100)]
a11y: Remove unused variable
Benjamin Otte [Mon, 24 Feb 2014 14:19:00 +0000 (15:19 +0100)]
a11y: Use more obvious function name
Benjamin Otte [Mon, 24 Feb 2014 13:17:28 +0000 (14:17 +0100)]
a11y: Split out creation of cell info
Don't mix cell info creation with cell accessible creation. Instead,
first create the accessible, then create the cell info.
Benjamin Otte [Mon, 24 Feb 2014 13:07:57 +0000 (14:07 +0100)]
a11y: Split out a function
First in a set of refactorings to make the create_cell() function
actually understandable.
Giovanni Campagna [Tue, 25 Feb 2014 23:02:04 +0000 (00:02 +0100)]
Gdk: fix wrong user_data handling in resize_cairo_surface()
Instead of destroying the surface in the backend if this is
unable to resize, let the core code do it, and do it properly.
Based on a patch by Benjamin Otte.
https://bugzilla.gnome.org/show_bug.cgi?id=725172
Giovanni Campagna [Tue, 25 Feb 2014 21:18:28 +0000 (22:18 +0100)]
pixbuf-demo: don't lock the window size
What's the use of an animation demo, if you can interactively
resize it and show off how cool is your window system handling
updates?
https://bugzilla.gnome.org/show_bug.cgi?id=725172
Chun-wei Fan [Tue, 25 Feb 2014 05:32:13 +0000 (13:32 +0800)]
MSVC Builds: Update Introspection Build Process
GObject-Introspection was recently changed to support acquiring the name of
the DLL from a library (.lib, etc) that was passed into g-ir-scanner on
Windows, like the *nix builds, instead of directly passing in the name of
the DLL.
This updates the introspection build process, so that introspection files
for GTK+ can continue to be properly built.
Jasper St. Pierre [Sun, 23 Feb 2014 21:06:05 +0000 (16:06 -0500)]
Add gtkactionbar.ui.h
Jasper St. Pierre [Sun, 23 Feb 2014 21:06:20 +0000 (16:06 -0500)]
wayland: Don't destroy the cairo surface when resizing it
The code in GDK is incredibly broken and nobody is quite sure what's
right-side-up and what's upside down, but this breaks mutter-wayland
now, so let's remove it. It might leak, but we should probably do a
full restructuring of GDK drawing to fix it.
Benjamin Otte [Sun, 23 Feb 2014 19:00:08 +0000 (20:00 +0100)]
toolpalette: Remove unused function
Rui Matos [Sat, 22 Feb 2014 18:10:59 +0000 (19:10 +0100)]
wayland: Fix gdk_window_wayland_resize_cairo_surface()
Like in other backends (except X) we can't resize cairo image surfaces
so let's sync the code here with what the other backends do.
This prevents the painting machinery above us to paint on the wrong
buffer.
https://bugzilla.gnome.org/show_bug.cgi?id=724968
Piotr Drąg [Sun, 23 Feb 2014 16:58:39 +0000 (17:58 +0100)]
Updated POTFILES.skip
Benjamin Otte [Sun, 23 Feb 2014 14:40:09 +0000 (15:40 +0100)]
testsuite: Don't leak in test runner
Benjamin Otte [Sun, 23 Feb 2014 14:39:36 +0000 (15:39 +0100)]
reftests: Add reftest for last commit
https://bugzilla.gnome.org/show_bug.cgi?id=724999
Benjamin Otte [Sun, 23 Feb 2014 13:57:44 +0000 (14:57 +0100)]
revealer: Pass correct size to child hfw function
The refactoring in
b9e37f8d2d4d14d3cb23f56a795fcdd2e6128e88 broke this.
https://bugzilla.gnome.org/show_bug.cgi?id=724999
Benjamin Otte [Fri, 21 Feb 2014 20:54:40 +0000 (21:54 +0100)]
csskeyframes: Split new() into alloc() and new()
The new() function is supposed to return an empty fully initialized
GtkCssKeyframes object, while the alloc() function just allocates and
initializes static values. So alloc() can be used for copying or
resolving keyframes.
Fixes a memleak when resolving keyframes.
GunChleoc [Sun, 23 Feb 2014 14:02:58 +0000 (14:02 +0000)]
Updated Scottish Gaelic translation
Matthias Clasen [Sun, 23 Feb 2014 02:42:05 +0000 (21:42 -0500)]
Be more careful to change state atomically
This avoids temporary states of maximized+tiled that
we otherwise report.
Wylmer Wang [Sun, 23 Feb 2014 02:00:31 +0000 (02:00 +0000)]
Updated Chinese (China) translation
Matthias Clasen [Sat, 22 Feb 2014 20:17:58 +0000 (15:17 -0500)]
Make testpopover more versatile
Allow testing alignment and positioning.
Matthias Clasen [Sat, 22 Feb 2014 19:07:48 +0000 (14:07 -0500)]
Take shadow size into account when positioning popovers
Without this, popovers have a tendency to protrude into the
invisible border of windows, which looks less than optimal.
Matthias Clasen [Sat, 22 Feb 2014 17:51:11 +0000 (12:51 -0500)]
a11y tests: Add a tests for menu buttons with popovers
This shows that popovers currently lack accessibility.
Matthias Clasen [Sat, 22 Feb 2014 17:49:24 +0000 (12:49 -0500)]
menu button: avoid property order dependencies
With the code as written, use-popover has to be set first,
before the model. To avoid this ordering dependency, re-set
the model when use-popover changes.
Matthias Clasen [Sat, 22 Feb 2014 17:36:55 +0000 (12:36 -0500)]
menu button: Fix property notification
Matthias Clasen [Sat, 22 Feb 2014 17:13:21 +0000 (12:13 -0500)]
a11y tests: Add a test for menubuttons with model
Matthias Clasen [Sat, 22 Feb 2014 17:08:45 +0000 (12:08 -0500)]
GtkModelButton: fix up naming
The convention we follow is that the PROP_foo define should
match the property name. Therefore, change PROP_MODEL to
PROP_MENU_MODEL to match "menu-model".
Matthias Clasen [Sat, 22 Feb 2014 17:02:30 +0000 (12:02 -0500)]
a11y tests: Add a test for GtkActionBar
Matthias Clasen [Sat, 22 Feb 2014 16:54:48 +0000 (11:54 -0500)]
a11y tests: add image buttons
Baurzhan Muftakhidinov [Sat, 22 Feb 2014 09:55:20 +0000 (09:55 +0000)]
Updated Kazakh translation
Matthias Clasen [Sat, 22 Feb 2014 03:31:16 +0000 (22:31 -0500)]
Fix life-cycle handling of treeview columns
gtk_tree_view_remove_column was first removing the column from
its list, then call gtk_tree_view_column_unset_tree_view, which
would then call gtk_container_remove to remove its button from
the treeview. But the treeview remove implementation relied
on the column being still in the list in order to recognize
the button as 'special', so in effect the button was never
properly removed and thus, leaked.
Fix this by callling unset_tree_view before removing the
column from the list.
https://bugzilla.gnome.org/show_bug.cgi?id=724891
Matthias Clasen [Sat, 22 Feb 2014 03:08:00 +0000 (22:08 -0500)]
Fix popover life-cycle handling
c28784524016b2a8eac18d5046ebc8cdaca7f9b0 was trying to fix
the memory leak caused by popovers begin destroyed in
gtk_window_destroy before chaining up to gtk_widget_destroy,
which unrealizes the window, and would clean up the popover
windows if the popovers were still around.
Fix this in a better way by moving the popover destruction
after the chaining up, so we unrealize first, and then
destroy the popovers.
Also, make _gtk_window_remove_popover unrealize the popover,
for symmetry with _gtk_window_add_popover.
This should fix
https://bugzilla.gnome.org/show_bug.cgi?id=724921
Matthias Clasen [Sat, 22 Feb 2014 02:40:48 +0000 (21:40 -0500)]
Fix GtkMenuToolButton
The addition of popovers to menu buttons broke this, by making
the toolbuttons stay insensitive.
https://bugzilla.gnome.org/show_bug.cgi?id=724799
Matthias Clasen [Sat, 22 Feb 2014 02:15:52 +0000 (21:15 -0500)]
about dialog: protect against gtk_widget_show_all
Normally, a GtkAboutDialog is shown using the convenience
API. But if you manually construct one and show it by calling
gtk_widget_show_all() on it, the license tab would show up
uninvited. Fix that.
https://bugzilla.gnome.org/show_bug.cgi?id=724411
Piotr Drąg [Sat, 22 Feb 2014 00:09:28 +0000 (01:09 +0100)]
Updated POTFILES.skip
Aurimas Černius [Fri, 21 Feb 2014 20:56:07 +0000 (22:56 +0200)]
Updated Lithuanian translation
William Jon McCann [Fri, 21 Feb 2014 20:13:17 +0000 (15:13 -0500)]
Don't leak the theme name
Paolo Borelli [Fri, 21 Feb 2014 20:07:11 +0000 (21:07 +0100)]
Do not leak cairo_region
William Jon McCann [Fri, 21 Feb 2014 19:02:37 +0000 (14:02 -0500)]
Don't leak the queried file info
https://bugzilla.gnome.org/show_bug.cgi?id=554618
William Jon McCann [Fri, 21 Feb 2014 18:43:55 +0000 (13:43 -0500)]
Unregister the popover before destroying it
Fixes a leak of the registered_windows list in GtkWidget.
https://bugzilla.gnome.org/show_bug.cgi?id=554618
Baurzhan Muftakhidinov [Fri, 21 Feb 2014 17:36:38 +0000 (17:36 +0000)]
Updated Kazakh translation
Marek Kasik [Fri, 21 Feb 2014 14:47:03 +0000 (15:47 +0100)]
printing: Fix visibility of tabs in print dialog
"Job", "Image Quality", "Color", "Finishing" and "Advanced" tabs
shouldn't be shown if there is no printer selected.
https://bugzilla.gnome.org/show_bug.cgi?id=724895
Marek Kasik [Fri, 21 Feb 2014 14:39:05 +0000 (15:39 +0100)]
printing: Fix sensitivity of the Print button
Don't make Print button sensitive until a printer is selected.
https://bugzilla.gnome.org/show_bug.cgi?id=724895
Chun-wei Fan [Fri, 21 Feb 2014 10:00:29 +0000 (18:00 +0800)]
Make Visual Studio Build Process A Bit Simpler
Add some flexibility in the property sheets for one building GTK+ that it
also searches for a settable installation path of Python, in addition to
searching the PATH for an installation of the Python interpretor. This
currently defaults to Python 2.7.x, which is normally installed in
c:\python27 on Windows by default. Also tell people in the README.txt's
for the Visual Studio builds
Matthias Clasen [Thu, 20 Feb 2014 23:31:10 +0000 (18:31 -0500)]
GtkTooltip: Avoid extra work
When we are hiding the label or icon anyway, no need to change
it right before, causing reallocation overhead.
William Jon McCann [Thu, 20 Feb 2014 21:41:15 +0000 (16:41 -0500)]
Don't leak list items of popovers
William Jon McCann [Thu, 20 Feb 2014 20:44:47 +0000 (15:44 -0500)]
file-chooser: make accept action sensitive only when has selection
https://bugzilla.gnome.org/show_bug.cgi?id=547988
William Jon McCann [Thu, 20 Feb 2014 19:04:18 +0000 (14:04 -0500)]
docs: update the screenshots
From the doc shooter.
Jasper St. Pierre [Thu, 20 Feb 2014 17:38:32 +0000 (12:38 -0500)]
window: Fix configure request debug code in move_resize
Make it compile in GTK+3 and switch pos_changed / size_changed
to be the right way around.
Carlos Garnacho [Thu, 20 Feb 2014 15:24:59 +0000 (16:24 +0100)]
popover: Always apply the window shape
In practice this shape is only used to outline the popover when it is
above native windows, in the most normal full-csw case the shape won't apply
visibly, so popovers will still be able to cast a shadow there.
If there are native windows below the popover, the shape will exclude the
shadow, so there are no alpha contents above the window. One worst case that
might happen is that the popover lays above patches of native/client-side
windows, so the shadow could come and go around the border. But first let's
see whether that happens often or visibly enough before adding something more
convoluted.
Matthias Clasen [Thu, 20 Feb 2014 15:10:34 +0000 (10:10 -0500)]
Trivial annotation syntax fix
William Jon McCann [Thu, 20 Feb 2014 14:19:31 +0000 (09:19 -0500)]
print-dialog: remove shadow in from some of the tabs
Benjamin Otte [Thu, 20 Feb 2014 00:47:21 +0000 (01:47 +0100)]
reftests: Add a reftest for the latest fix
https://bugzilla.gnome.org/show_bug.cgi?id=724742
Benjamin Otte [Wed, 19 Feb 2014 20:15:25 +0000 (21:15 +0100)]
revealer: Allocate extra size to child
Do not constrain the child widget to its preferred size when the
revealer is larger.
https://bugzilla.gnome.org/show_bug.cgi?id=724742
Benjamin Otte [Tue, 18 Feb 2014 12:56:26 +0000 (13:56 +0100)]
stackswitcher: Don't do unneeded update
The update of the needs-attention state is done via its own property,
so it doesn't need to be done via visibility changes.
This patch is largely the result of inspecting the code due to a warning
and not a result of testing. So if issues pop up that bisect back to
this patch, that's why.
Benjamin Otte [Thu, 20 Feb 2014 01:08:53 +0000 (02:08 +0100)]
stylecascade: Remove function
Inline it.
Benjamin Otte [Thu, 20 Feb 2014 01:02:05 +0000 (02:02 +0100)]
settings: Store style cascade in settings object
This ensures that the initialization for the CSS theme happens when the
style cascade gets queried.
https://bugzilla.redhat.com/show_bug.cgi?id=
1064922
https://bugzilla.mozilla.org/show_bug.cgi?id=972382
Benjamin Otte [Tue, 18 Feb 2014 12:48:13 +0000 (13:48 +0100)]
testsuite: Add a test for a Firefox issue
When creating a style context, the CSS for the theme might not be
loaded. If it is, this test will succeed.
https://bugzilla.redhat.com/show_bug.cgi?id=
1064922
https://bugzilla.mozilla.org/show_bug.cgi?id=972382
Benjamin Otte [Fri, 14 Feb 2014 23:42:13 +0000 (00:42 +0100)]
tests: Connect signals in visuals test
This is useful for demoing animations.
Benjamin Otte [Fri, 14 Feb 2014 23:41:06 +0000 (00:41 +0100)]
tests: Don't use show_all() for a builder file
It's enough to gtk_widget_show() the window as all the widgets in a
builder file a marked properly for visibility.
Matthias Clasen [Thu, 20 Feb 2014 00:37:45 +0000 (19:37 -0500)]
docs: Improve section headings
Matthias Clasen [Thu, 20 Feb 2014 00:36:55 +0000 (19:36 -0500)]
Add docs
William Jon McCann [Wed, 19 Feb 2014 23:49:43 +0000 (18:49 -0500)]
docs: use Returns: consistently
Instead of Return value:
Kjartan Maraas [Wed, 19 Feb 2014 22:55:38 +0000 (23:55 +0100)]
Updated Norwegian bokmål translation
Yuri Myasoedov [Wed, 19 Feb 2014 17:28:25 +0000 (21:28 +0400)]
Fixed Russian translation
Matthias Clasen [Wed, 19 Feb 2014 07:03:51 +0000 (02:03 -0500)]
Bump version
Matthias Clasen [Wed, 19 Feb 2014 05:43:36 +0000 (00:43 -0500)]
3.11.7
Matthias Clasen [Wed, 19 Feb 2014 06:33:12 +0000 (01:33 -0500)]
GtkActionBar: Implement destroy
Similar to map/unmap, this needs to follow the actual
widget tree. Without this, several test cases in
the templates test fail.
Matthias Clasen [Wed, 19 Feb 2014 06:01:03 +0000 (01:01 -0500)]
Small documentation fixes
Matthias Clasen [Wed, 19 Feb 2014 06:00:09 +0000 (01:00 -0500)]
Drop unimplemented functions
These were added to the header by mistake in a recent commit.
They have no implementation, so dropping them won't cause
any harm.
Matthias Clasen [Wed, 19 Feb 2014 05:54:35 +0000 (00:54 -0500)]
Document gtk_header_bar_get_has_subtitle
Matthias Clasen [Wed, 19 Feb 2014 05:51:10 +0000 (00:51 -0500)]
Document gtk_widget_get_scale_factor
Matthias Clasen [Wed, 19 Feb 2014 05:31:40 +0000 (00:31 -0500)]
Fix a small memory leak
GtkPrintUnixDialog was leaking a GFile.
Spotted by Christian Persch in
https://bugzilla.gnome.org/show_bug.cgi?id=724631
Carlos Garnacho [Tue, 18 Feb 2014 13:38:30 +0000 (14:38 +0100)]
popover: Accept NULL relative_to widgets
And document the fact that the popover will get destroyed if
a NULL relative-to is given on a parented popover, if no extra
references are kept.
For gtk_popover_new*(), a NULL relative-to will leave the widget
as a floating object, to be sunk by a later call to
gtk_widget_set_relative_to().
https://bugzilla.gnome.org/show_bug.cgi?id=724407
Paolo Borelli [Sat, 15 Feb 2014 10:30:53 +0000 (11:30 +0100)]
Do not call popover_set_relative with NULL
This gives a critical warning since that function expects a
valid widget.
https://bugzilla.gnome.org/show_bug.cgi?id=724407
Matthias Clasen [Tue, 18 Feb 2014 03:27:35 +0000 (22:27 -0500)]
GtkTextHandle: Deal with parent_scrollable going away
Use a weak reference to notice when parent_scrollable is
going away.
https://bugzilla.gnome.org/show_bug.cgi?id=724392
Matthias Clasen [Wed, 19 Feb 2014 03:55:45 +0000 (22:55 -0500)]
GtkBox: Fix an off-by-one error with center allocation
This error was causing children to not get allocated when
the center widget is the first one in the list of the box's
children.
Matthias Clasen [Wed, 19 Feb 2014 02:16:35 +0000 (21:16 -0500)]
Make gtk_box_set_center_widget take NULL
It makes sense to allow this, and gtk_action_bar_set_center_widget
already assumes that it can pass NULL to this function.
Matthias Clasen [Wed, 19 Feb 2014 03:43:04 +0000 (22:43 -0500)]
Add map/unmap to GtkActionBar
The recursion in map needs to follow the actual physical
widget tree, otherwise we violate invariants. The generic
container map implementation uses gtk_container_forall to
operate on the children, and thus is not suitable for
containers where the children are inside some internal
container.
Matthias Clasen [Wed, 19 Feb 2014 02:11:32 +0000 (21:11 -0500)]
Fix up gtk_action_bar_forall
We need to always iterate over non-internal children.